<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Contact</title>
    <!-- Font awesome -->
    <link href="css/font-awesome.css" rel="stylesheet">
    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <!-- flickity slider -->
    <link href="css/flickity.css" rel="stylesheet">
    <!-- Tosrus slider -->
    <link type="text/css" media="all" rel="stylesheet" href="css/jquery.tosrus.all.css" />
    <!-- Theme color -->
    <link id="switcher" href="css/theme-color/default.css" rel="stylesheet">
    <!-- Main style sheet -->
    <link href="css/main.css" rel="stylesheet">
    <!-- Google Font -->
    <link href='https://fonts.googleapis.com/css?family=Merriweather' rel='stylesheet'
        type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="wrapper">
        <!-- Background Photographer image -->
        <div class="hero">
            <div class="hero__back hero__back--static">
            </div>
            <div class="hero__back hero__back--mover">
            </div>
            <div class="hero__front">
            </div>
        </div>
        <!-- / Background Photographer image -->
        <!-- Start Header -->
        <header id="header">
      <a class="logo" href="index.html">My home page</a>
      <a id="nav-icon" href="#"><span class="fa fa-bars"></span></a>
    </header>
        <!-- / Header -->
        <!-- Start Menu Popup -->
        <div id="menu-popup">
            <a id="close-nav" href="#">
                <img src="img/close-icon.png" alt=""></a>
            <nav class="nav-menu">
        <ul>
          <li><a href="index.html">Home</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="portfolio.html">Portfolio</a></li>
          <li><a href="contact.html">Contact</a></li>         
        </ul>        
      </nav>
            <nav class="social-nav">
        <ul>
          <li><a href="#">Facebook</a></li>
          <li><a href="#">Twitter</a></li>
          <li><a href="">Google+</a></li>
          <li><a href="">Instagram</a></li>
        </ul>
      </nav>
        </div>
        <!-- / Menu Popup -->
        <section id="main-content">
      <div class="container">
        <div class="col-md-12">
          <div class="contact-area">                   
            <div class="row">
              <div class="col-md-6 col-sm-6 col-xs-12">
                <div class="contact-map">
                  <img src="img/1.jpg" alt="" width="100%" style="height:100%;margin-top: 100px;">
                </div>
              </div>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <div class="contact-form">
                  <h3>写新留言</h3>
                  <p>留言会公开显示，请勿在留言内容写下微信号等私人联系方式，谨防诈骗。如果你不想发布公开留言，也可以发送邮件到 742325049@qq.com 与我联系。

                    完成</p>
                  <form action="mail_handler.php" method="post" onsubmit="return ValidatorForm(this)">
                    <div class="form-group">                      
                      <input type="text" name="name" class="form-control" placeholder="名字">
                    </div>
                    <div class="form-group">                      
                      <input type="email" name="email" class="form-control" placeholder="邮箱">
                    </div>                     
                    <div class="form-group">
                      <textarea class="form-control"  name="message" rows="3" placeholder="内容"></textarea>
                    </div>
                    <div class="form-group">
                      <input class="send-btn" name="submit" type="submit" value="发送">
                    </div>                  
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
        <!-- jQuery library -->
        <script src="js/jquery.min.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="js/bootstrap.js"></script>
        <!-- Flickity slider -->
        <script src="js/flickity.pkgd.min.js"></script>
        <script src="js/smoothscroll.js"></script>
        <!-- Modernizer -->
        <script src="js/modernizr.custom.js"></script>
        <!-- Integrated Sliding Up Effect -->
        <script src="js/main.js"></script>
        <!-- Tosrus slider -->
        <script type="text/javascript" src="js/jquery.tosrus.min.all.js"></script>
        <!-- Custom js -->
        <script src="js/custom.js"></script>
        <script type="text/javascript"><!--
            function ValidatorForm(theForm) {
                if (theForm.name.value == "") {
                    alert("Please enter a value for the \"Name\" field.");
                    theForm.name.focus();
                    return (false);
                }
                if (theForm.email.value == "") {
                    alert("Please enter a value for the \"Email\" field.");
                    theForm.email.focus();
                    return (false);
                }                
                return (true);
            }
//--></script>
</body>
</html>
